package com.lianjinsu.shop.core.mybatis;

import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Collection;

public interface AdvancedDao<MODEL> extends IService<MODEL> {

    @Override
    AdvancedBaseMapper<MODEL> getBaseMapper();

    default int saveBatchNew(Collection<MODEL> modelCollection) {
        return getBaseMapper().insertBatchSomeColumn(modelCollection);
    }
}
